﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MongoDB.Driver;
using MongoDB.Driver.Builders;
using Ymatou.User.Dto.Auth;
using YmtAuth.Domain.EventHistory;

namespace YmtAuth.Domain.Model.YmatouUser.Event
{
    public static class UserBillsSpecifications
    {
        public static IMongoQuery MatchPasUpdateHistory(int userId, string pType)
        {
            return Query<YmtUserPasswordChangeEvent>.Where(e => e.UserId == userId && e.PasswordType == pType);
        }
    }
}
